package com.kgc.sbt.beans;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * cart
 * @author 
 */
@ApiModel(value="com.kgc.sbt.beans.ShoppingCart购物车表")
@Data
public class ShoppingCart implements Serializable {
    /**
     * 购物车id
     */
    @ApiModelProperty(value="购物车id")
    private Integer carId;

    /**
     * 用户id
     */
    @ApiModelProperty(value="用户id")
    private Integer userId;

    /**
     * 商品id
     */
    @ApiModelProperty(value="商品id")
    private Integer productId;

    /**
     * 加入购物车商品数量
     */
    @ApiModelProperty(value="加入购物车商品数量")
    private Integer quantity;

    /**
     * 单价
     */
    @ApiModelProperty(value="单价")
    private Integer price;

    /**
     * 是否勾选,1=已勾选,0=未勾选
     */
    @ApiModelProperty(value="是否勾选,1=已勾选,0=未勾选")
    private Integer checked;

    /**
     * 添加时间
     */
    @ApiModelProperty(value="添加时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    private static final long serialVersionUID = 1L;
}